package com.maiji.cloud.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.maiji.cloud.entities.shopingmall.Goods;
import com.maiji.cloud.request.shopingmall.GoodsFindAllReqData;
import com.maiji.cloud.response.shopingmall.GoodsResData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {

    GoodsResData findGoodsById(@Param("goodsId") String goodsId);

    List<GoodsResData> findAllGoods(@Param("data") GoodsFindAllReqData data, Page page);

    List<GoodsResData> findAllExchangeGoods(@Param("labelId") String labelId, Page page);

    List<GoodsResData> findAllRecommendGoods(@Param("labelId")String labelId);

    List<GoodsResData> findAllGoodsByFoodId(@Param("foodIds")List<String> foodIds, Page page);

}
